package com.ice.app.system.mapper;

import java.util.List;
import java.util.Map;

import com.ice.app.system.entity.Organ;
import com.ice.app.system.organ.vo.OrganTreeVo;
import com.ice.app.system.organ.vo.OrganUserRelVo;

/**
 * 组织机构管理
 * 
 * @author Mr.Palo
 * @email 442803840@qq.com
 * 
 */
public interface OrganMapper {

	int insertSelective(Organ organ);

	int deleteByPrimaryKey(String key);

	int updateByPrimaryKeySelective(Organ organ);

	Organ selectByPrimaryKey(String key);

	List<Organ> selectByFilter(Map<String, Object> map);

	int deleteOrganUserRelByUserId(String userId);

	int insertOrganUserRelByUserId(OrganUserRelVo record);

	List<OrganTreeVo> selectOrganTreeByUserId(String userId);
	
	List<OrganTreeVo> selectInfoOrganTreeByUserId(String userId);
	

}
